package service.impl;

import models.Order;
import processor.OrderProcessor;
import service.OrderService;

public class OrderServiceImpl extends AbstractServiceImpl implements OrderService {

    protected Order dbOrder;

    private Double requestAmount;

    public OrderServiceImpl() {
        this.dbOrder = new Order();
    }

    public OrderServiceImpl(Order order) {
        this.dbOrder = order;
    }
    


    @Override
    public OrderProcessor getProcessor() {
        // TODO Auto-generated method stub
        return new OrderProcessor(this.dbOrder);
    }

    public Double getRequestAmount() {
        return requestAmount;
    }

    public void setRequestAmount(Double requestAmount) {
        this.requestAmount = requestAmount;
    }

    public Order getDborder() {
        return dbOrder;
    }

    public void setDborder(Order dborder) {
        this.dbOrder = dborder;
    }
    
    

}
